﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallJob.Model
{
    public enum ETransactionType
    {
        Payment_Premium = 1,
        Payment_PreOrder = 2,
        Payment_Order = 3
    }
    public enum ETransactionStatus
    {
        Wait_Payment = 1,
        Payment_Done = 2,
        Payer_Payment_Success = 3,
        Receiver_Receive_Success = 4,
        Receiver_Receive_Cancel = 5
    }
    public class Transaction
    {
        public int ID { get; set; }
        public int PayerID { get; set; }
        public int ReceiverID { get; set; }
        public int Amount { get; set; }
        public DateTime CreatedDate { get; set; }
        public int TransactionType { get; set; }
        public string MoreInfo { get; set; }
        public int Status { get; set; }
        public string TransactionCode { get; set; }
        public DateTime ModifiedDate { get; set; }
        public int ProvideID { get; set; }
        public int RequestID { get; set; }
        public int OrderID { get; set; }

        public Provide Provide { get; set; }
        public Request Request { get; set; }
        public User Payer { get; set; }
        public User Receiver { get; set; }
    }
}
